FortiOS 5.4 Online Help Link FortiOS 5.2 Online Help Link FortiOS 5.0 Online Help Link FortiOS 4.3 Online Help Link

Home > Online Help

> Chapter 9 - Firewall > Building firewall objects and policies > Example: Firewall Schedule - One-time

Example: Firewall schedule - one-time

The company wants to change over their web site image to reference the new year. They have decided to take this opportunity to do some hardware upgrades as well. Their web site is business oriented so they have determined that over New Year’s Eve there will be very limited traffic.

  • They are going to need a maintenance window of 2 hours bracketing midnight on New Year’s Eve.
  1. Go to Policy & Objects > Objects > Schedule.
  2. Select Create New > Schedule.
  3. Fill out the fields with the following information:
Type One-time
Name NewYearsEve_Maintenance
Start Date 2014/12/31 <use the built in calendar>
End Date 2015/01/01 <use the built in calendar>
Start Time Hour: 23, Minute: 0
Stop Time Hour: 1Minute: 0
Pre-expiration event log <disable>
  1. Select OK.
  2. Enter the following CLI command:

config firewall schedule onetime

edit maintenance_window

set start 23:00 2012/12/31

set end 01:00 2013/01/01

next

end

To verify that the schedule was added correctly:
  1. Go to Policy & Objects > Objects > Schedule.
  2. Check that the schedule with the name you used has been added to the list of recurring schedules and that the listed settings are correct.
  3. Enter the following CLI command:

config firewall schedule onetime

edit <the name of the schedule you wish to verify>

show full-configuration

group you wish to verify>

show full-configuration